package com.imooc.ecommerce.constant;

/**
 * <p>网关常量定义
 *
 * @author Yaxi.Zhang
 * @since 2022/11/5 10:31
 */
public final class GatewayConstant {
    /**
     * 请求网关时header中需要携带的key值
     */
    public static final String GATEWAY_HEADER_NAME = "token";

    /**
     * 请求网关时header中需要携带的key值对应的value
     */
    public static final String GATEWAY_HEADER_VALUE = "imooc";

    /**
     * 登录 uri
     */
    public static final String LOGIN_URI = "/e-commerce/login";

    /**
     * 注册 uri
     */
    public static final String REGISTER_URI = "/e-commerce/register";

    /**
     * 去授权中心拿到登录 token 的 uri 格式化接口
     */
    public static final String AUTHORITY_CENTER_TOKEN_URL_FORMAT = "http://%s:%s/ecommerce-authority-center/authority/token";

    /**
     * 去授权中心注册并拿到 token 的 uri 格式化接口
     */
    public static final String AUTHORITY_CENTER_REGISTER_URL_FORMAT = "http://%s:%s/ecommerce-authority-center/authority/register";

}
